﻿// <copyright file="error.aspx.cs" company="NTalent">
// Copyright (c) 2010, NTalent, Inc. All rights reserved
// </copyright>
// <author>卢俊坤</author>
// <author>王彦博 符茂松</author>

using System;

/// <summary>
/// 管理页面，浏览某一个action的所有news
/// </summary>
///<author>王彦博</author> 
/// <copyright>
/// Copyright (c) 2010, NTalent, Co. Ltd. All rights reserved.
/// </copyright>
/// <version>1.0.0</version>
public partial class error : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Exception objErr = (Exception)Application["Error"];
        string errorPageUrl = (string)Application["ErrorUrl"];
        string err = "Error Caught in Application_Error event<br>" +
                     "Error in:" + errorPageUrl +
                     "<br>Error Message:" + objErr.Message.ToString() +
                     "<br>Stack Trace:" + objErr.StackTrace.ToString();       
        Literal_errorMessage.Text = err;
        Application["Error"] = null;
        Application["ErrorUrl"] = null;
    }

}
